body{
    margin: 0;
    padding: 0;
    background: #d3c0c0;
}

a{
    text-decoration: none;
}

span{
    background: none;
    color: black;
    font-weight: bold;
    font-size: 20px;
    float: left;
}

label{

    background: none;
    color: black;
    font-weight: bold;
    font-size: 20px;
    /*float: left;*/
}

div{
    position: relative;
    float: left;
}

.button_function{
    float: left;
    display: block;
    margin-top: 20px;
    margin-left: 15px;
    width: 20%;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    border-radius: 10px;
    background: #3498db;
    border: none;
    outline: none;
    padding: 15px;
    transition: 0.3s;
}


button:hover{
    background: lightgreen;
}


.login_h1{
    background: none;
    text-align: center;
    margin: 20px 0;
    color: black;

}

.add_A{
    text-align: center;
    font-size: 25px;
    color: blueviolet;
    margin-left: 50%;
    border: 1px solid forestgreen;
}

.shopping_car{
    float: right;
    width: 60px;
    height: 50px;
    display: block;
    /*margin-top: 20px;*/
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    border-radius: 10px;
    background: whitesmoke;
    border: 1px solid blue;
    /*outline: none;*/
    padding: 8px;
    transition: 0.3s;
}

.shopping_car:hover{
    background: honeydew;
}


#Div_container{
    width: 80%;
    height: 750px;
    margin-left: 10%;
    border: 5px solid white;
    background-color: bisque;
    /*border-radius: 16px;设置轮廓边框 */
    border-radius: 16px;

    /*修改*/
    margin-top: 5%;
}



#div_fruit{
    margin-left: 50px;
    margin-top: 40px;
    width: 90%;
    height: 85%;
    border: 1px solid red;

}

.goodName{
    font-size: 15px;
    width: 120px;
    height: 25px;
}

.goodInfo{

    font-size: 15px;
    width: 40px;
    height: 25px;
}

.div_good{
    padding-left: 10px;
    padding-top: 8px;
}

.search_img{
    /*padding-top: 2px;*/
    width: 20px;
    height: 25px;
}

.shopping_img{
    text-align: center;
    width: 30px;
    height: 35px;
}

.span_index{
    float: left;
    border: 1px solid blue;
    font-size: 30px;
}

.search_input{
    float: left;
    width: 400px;
    height: 40px;
    border: 1px solid blue;
    font-size: 24px;
    padding-left: 8px;
}

.div_index{

    width: 100%;
    height: 10%;
    position: relative;
    border: 1px solid brown
}


/*图片悬停*/
.Goods_container{

    border: 4px solid lightcoral;
    width: 60%;
    height: 500px;
    /* 相对定位 */
    position: relative;
    /* 弹性布局 横向排列 允许换行 */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    border-radius: 10px;
    margin-top: 10px;
    margin-left: 5px;
}

/*设置间隔*/
.box{
    margin-top: 20px;
    margin-left: 50px;
}

.Goods_container .box{
    position: relative;
    width: 200px;
    height: 210px;
    border: 5px solid #ecf0f1;
    border-radius: 5px;
    /* 溢出隐藏 */
    overflow: hidden;
    /* 动画过渡 */
    transition: 0.5s;
}

/* 鼠标移入，盒子变大 */
.Goods_container .box:hover{
    transform: scale(1.05);
    box-shadow: 0 25px 40px rgba(0,0,0,0.5);
    z-index: 1;
}



/*设置图片的大小*/
.Goods_container .box .img-box{
    /* 绝对定位 */
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 80%;
}

/* 渐变遮罩（黑色——透明） 默认隐藏 */
.Goods_container .box .img-box::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top,#222,transparent);
    z-index: 1;
    opacity: 0;
    transition: 0.5s;
}

/* 鼠标移入，渐变遮罩显示 */
.Goods_container .box:hover .img-box::before{
    opacity: 1;
}

.Goods_container .box .img-box img{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* 保持原有尺寸比例，裁切长边 */
    object-fit: cover;
    z-index: 7;
}


/*p标签的文字*/
.Goods_container .box .text-box{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /*padding: 10px;*/

    /* 弹性布局 元素位于容器的结尾 */
    display: flex;
    align-items: flex-end;
    color: #f39c12;
    z-index: 2;
}

/*处理是否显示p标签的内容*/
.Goods_container .box .text-box h2{
    font-size: 12px;
    margin-bottom: 5px;
    /* 默认移出可视范围 */
    transform: translateY(200px);
    transition: 0.5s;
}

.Goods_container .box:hover .text-box h2{
    /* 鼠标移入，移入可视范围 */
    transform: translateY(0);
    /* 设置动画延迟时间 */
    transition-delay: 0.3s;
}

.Goods_container .box .text-box p{
    font-size: 15px;
    line-height: 10px;
    /* 默认移出可视范围 */
    transform: translateY(200px);
    transition: 0.5s;
}

.Goods_container .box:hover .text-box p{
    /* 鼠标移入，移入可视范围 */
    transform: translateY(0);
    /* 设置动画延迟时间 */
    transition-delay: 0.4s;
}

#buy_img{
    z-index: 3;
}



/*抢购图片*/
.buy_box{
}

.div_buy .buy_box{
    position: relative;
    width: 365px;
    height: 200px;
    /* 溢出隐藏 */
    overflow: hidden;
    /* 动画过渡 */
    transition: 0.5s;
    border-radius: 5px;
}

/* 鼠标移入，盒子变大 */
.div_buy .buy_box:hover{
    transform: scale(1.05);
    box-shadow: 0 25px 40px rgba(0,0,0,0.5);
    z-index: 1;
}




/*设置图片的大小*/
.div_buy .buy_box .img-box{
    /* 绝对定位 */
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

/* 渐变遮罩（黑色——透明） 默认隐藏 */
.div_buy .buy_box .img-box::before{
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;

    background: linear-gradient(to top,#222,transparent);
    z-index: 1;
    opacity: 0;
    transition: 0.5s;
}

/* 鼠标移入，渐变遮罩显示 */
.div_buy .buy_box:hover .img-box::before{
    opacity: 1;
}

.div_buy .buy_box .img-box img{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    /* 保持原有尺寸比例，裁切长边 */
    object-fit: cover;
}


/*p标签的文字*/
.div_buy .buy_box .text-box{
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
    /* 弹性布局 元素位于容器的结尾 */
    display: flex;
    align-items: flex-end;
    color: #f39c12;
    z-index: 2;
}

/*处理是否显示p标签的内容*/
.div_buy .buy_box .text-box h2{
    font-size: 24px;
    margin-bottom: 5px;
    /* 默认移出可视范围 */
    transform: translateY(200px);
    transition: 0.5s;
}

.div_buy .buy_box:hover .text-box h2{
    /* 鼠标移入，移入可视范围 */
    transform: translateY(0);
    /* 设置动画延迟时间 */
    transition-delay: 0.3s;
}

.div_buy .buy_box .text-box p{
    font-size: 20px;
    line-height: 10px;
    /* 默认移出可视范围 */
    transform: translateY(200px);
    transition: 0.5s;
}

.div_buy .buy_box:hover .text-box p{
    /* 鼠标移入，移入可视范围 */
    transform: translateY(0);
    /* 设置动画延迟时间 */
    transition-delay: 0.4s;
}















.search_btn{
    float: left;
    display: block;
    /*margin-top: 20px;*/
    width: 50px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    border-radius: 10px;
    background: orange;
    border: 1px solid blue;
    /*outline: none;*/
    padding: 8px;
    transition: 0.3s;
}

.search_btn:hover{
    background: lightgreen;
}


.div_login{
    margin-left: 100px;
    margin-top: 10px;
    width: 25%;
    height: 18%;
    /*border: 5px solid orange;*/
    float: left;
}

.div_login a{
    width: 80px;
    height: 80px;
}

.div_login span{
    position: relative;
    margin-left: 15px;
    margin-top: 15%;

}

.img_login{
    float: left;
    width: 80px;
    position: relative;
}


.user_function{
    margin-left: 60px;
    width: 30%;
    height: 18%;
}

.div_page{

    width: 60%;
    /*margin-left:15%;*/
    margin-left: 60px;
    margin-top: 10px;

}


.div_page input{
    float: left;
    display: block;
    width: 8%;
    color: white;
    cursor: pointer;
    font-weight: bold;
    font-size: 15px;
    border-radius: 10px;
    background: black;
    border: none;
    outline: none;
    padding: 10px;
    transition: 0.3s;
}

.div_page input:hover{
    background: lightgreen;
}



.btn_2{
    width: 100px;
    height: 45px;
    font-size: 25px;
    text-align: center;
}

.table_type{
    padding-top: 10px;
    padding-left: 2px;
    border-left: 3px solid #16a085;
    width: 150px;
    height: 200px;
    border-radius: 10px;
    border-collapse:collapse;
}

#type_span{
    position: relative;
    width: 100%;
    background: none;
    color: black;
    font-weight: bold;
    font-size: 20px;
}

.table_type p{
    margin-left: 15px;
    /*border-bottom: 2px solid black;*/
    /*border: 5px solid red;*/
    font-size: 20px;
    margin-bottom: 15px;
    float: left;
    color: black;
    padding: 3px;
    border-bottom: 3px solid wheat;

}


.table_type p:hover{
    color: #16a085;
}


.table_type a{
    font-weight: bold;
    color: #2c3e50;
    background: none;
    text-decoration: none;
    transition: 0.3s;
    font-size: 20px;
    margin-left: 4px;
}

.table_type a:hover{
    color: #16a085;
}


.div_buy{

    padding-top: 10px;
    padding-left: 4px;
    width: 365px;
    height: 210px;
    float: left;
    /* 相对定位 */
    position: relative;
    /* 弹性布局 横向排列 允许换行 */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;

}



/*弹窗*/
.display-btn{

    top:18px;
    right: 10px;
    display: flex;
    align-items: center;

    justify-content: center;
    font-weight: bold;
    font-size: 20px;

    width: 80px;
    height: 40px;
    cursor: pointer;
    background: lightsteelblue;
    border-radius: 10px;
    transition: 0.3s;
}


.display-btn:hover{
    background: black;
    color: white;
}


.close-btn{
    right: 10%;
    position: absolute;
    color: black;
    font-size: 30px;
    cursor: pointer;
    font-weight: bold;
    background: none;
    transition: 0.2s;
}


.close-btn:hover{
    color: red;
}

#checkSpan{
    display: inline-block;
    width: 100%;
    margin-left: 5px;
    color: red;
    margin-top: 0.5vw;
    visibility: hidden;
}
